﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ResponsavelLib.Basic;
using ResponsavelLib.Repositorio;
using System.Data;

namespace ResponsavelLib.Regra
{
    public class RegResponsavel
    {
        public void campoVazio(Responsavel obj)
        {
            if (obj.Nome.Equals("") || obj.Endereco.Equals("") || obj.Telefone.Equals("") || obj.Sexo.Equals("")||obj.Filiacao.Equals("")||obj.Categoria.Equals("")|| obj.Email.Equals(""))
            {
                throw new Exception("Campos em branco!");
            }
        }
    }
}
